package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsBusinessMaterialMapper;
import com.hckjsec.cloud.domain.AppletsBusinessMaterial;
import com.hckjsec.cloud.service.IAppletsBusinessMaterialService;

/**
 * 申办信息-公证材料Service业务层处理
 * 
 * @author cyt
 * @date 2021-08-23
 */
@Service
public class AppletsBusinessMaterialServiceImpl implements IAppletsBusinessMaterialService 
{
    @Autowired
    private AppletsBusinessMaterialMapper appletsBusinessMaterialMapper;

    /**
     * 查询申办信息-公证材料
     * 
     * @param id 申办信息-公证材料ID
     * @return 申办信息-公证材料
     */
    @Override
    public AppletsBusinessMaterial selectAppletsBusinessMaterialById(Long id)
    {
        return appletsBusinessMaterialMapper.selectAppletsBusinessMaterialById(id);
    }

    /**
     * 查询申办信息-公证材料列表
     * 
     * @param appletsBusinessMaterial 申办信息-公证材料
     * @return 申办信息-公证材料
     */
    @Override
    public List<AppletsBusinessMaterial> selectAppletsBusinessMaterialList(AppletsBusinessMaterial appletsBusinessMaterial)
    {
        return appletsBusinessMaterialMapper.selectAppletsBusinessMaterialList(appletsBusinessMaterial);
    }

    /**
     * 新增申办信息-公证材料
     * 
     * @param appletsBusinessMaterial 申办信息-公证材料
     * @return 结果
     */
    @Override
    public int insertAppletsBusinessMaterial(AppletsBusinessMaterial appletsBusinessMaterial)
    {
        return appletsBusinessMaterialMapper.insertAppletsBusinessMaterial(appletsBusinessMaterial);
    }

    /**
     * 修改申办信息-公证材料
     * 
     * @param appletsBusinessMaterial 申办信息-公证材料
     * @return 结果
     */
    @Override
    public int updateAppletsBusinessMaterial(AppletsBusinessMaterial appletsBusinessMaterial)
    {
        return appletsBusinessMaterialMapper.updateAppletsBusinessMaterial(appletsBusinessMaterial);
    }

    /**
     * 批量删除申办信息-公证材料
     * 
     * @param ids 需要删除的申办信息-公证材料ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessMaterialByIds(Long[] ids)
    {
        return appletsBusinessMaterialMapper.deleteAppletsBusinessMaterialByIds(ids);
    }

    /**
     * 删除申办信息-公证材料信息
     * 
     * @param id 申办信息-公证材料ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessMaterialById(Long id)
    {
        return appletsBusinessMaterialMapper.deleteAppletsBusinessMaterialById(id);
    }
}
